package com.hualan.mapper;

import com.hualan.pojo.Questions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author xcj
* @description 针对表【questions】的数据库操作Mapper
* @createDate 2025-04-27 14:34:20
* @Entity com.hualan.pojo.Questions
*/
@Mapper
public interface QuestionsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Questions record);

    int insertSelective(Questions record);

    Questions selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Questions record);

    int updateByPrimaryKey(Questions record);

    List<Questions> selectAllActive();
//批量删除
    int batchDelete(@Param("ids") List<Long> ids);

    //标题模糊查询
    List<Questions> selectByTitle(@Param("title") String title);
}
